package com.ndp.fb.rdb.api;

import com.ndp.fb.enums.account.InvitaionCodeStatus;
import com.ndp.fb.rdb.model.InvitationCode;

/**
 * Created by elvisxiong on 7/8/15.
 */
 public interface InvitationCodeRdbService {

    //insert邀请码
     Long insertInvitationCode(InvitationCode invitationCode);

    //修改邀请码状态
     Long updateInvitaionCodeStatus(Long id,InvitaionCodeStatus status);



    //根据邀请码查询邀请码信息
     InvitationCode getInvitationCodeByCode(String code,Boolean expireSwitch);

    Integer getCountByOrgId(Long orgId,String roles);

}
